package com.hnas.trade.domain;

import java.util.HashMap;
import java.util.Map;

public class OpTranType {

	// 开放数据平台的运营商类型，格式：1-移动；2-电信；3-联通；4-虚拟运营商
	public static final String OP_TELECOM_TYPE1 = "1";
	public static final String OP_TELECOM_TYPE2 = "2";
	public static final String OP_TELECOM_TYPE3 = "3";
	public static final String OP_TELECOM_TYPE4 = "4";

	// 开放数据平台的商品类型，格式：0-话费；1-流量
	public static final String OP_PRODUCT_TYPE0 = "0";
	public static final String OP_PRODUCT_TYPE1 = "1";

	private static Map<String, String> opTelecomTypeMap = new HashMap<String, String>();
	static {
		opTelecomTypeMap.put(OP_TELECOM_TYPE1, "移动运营商");
		opTelecomTypeMap.put(OP_TELECOM_TYPE2, "电信运营商");
		opTelecomTypeMap.put(OP_TELECOM_TYPE3, "联通运营商");
		opTelecomTypeMap.put(OP_TELECOM_TYPE4, "虚拟运营商");
	}

	private static Map<String, String> opProductTypeMap = new HashMap<String, String>();
	static {
		opProductTypeMap.put(OP_PRODUCT_TYPE0, "话费充值");
		opProductTypeMap.put(OP_PRODUCT_TYPE1, "流量充值");
	}

	public static Map<String, String> getOpTelecomTypeMap() {
		return opTelecomTypeMap;
	}
	
	public static String getOpTelecomTypeStr(String key) {
		return opTelecomTypeMap.get(key);
	}
	
	public static Map<String, String> getOpProductTypeMap() {
		return opProductTypeMap;
	}
	
	public static String getOpProductTypeStr(String key) {
		return opProductTypeMap.get(key);
	}
}
